package com.cmower.javapoint.javatutorial.eleven;

public class UnaryOperator2 {
    public static void main(String[] args) {
        int a = 10;
        int b = -10;
        boolean c = true;
        boolean d = false;

        System.out.println(~a);//-11
        System.out.println(~b);//9

        System.out.println(!c);//false (非)
        System.out.println(!d);//true
    }
}
